/*
 * @Author: Shiire
 * @Date: 2022-08-21 16:08:25
 * @LastEditors: Shiire
 * @LastEditTime: 2022-08-21 17:05:19
 * @Description: 
 * @FilePath: \grapro\src\utils\setShowStatus.js
 */
module.exports = function (scrollTop, winTop) {

    this.$refs["videobox"].forEach((item, index) => {
        // console.log(item);
        if (
            item.$el.offsetTop + item.$el.offsetHeight > scrollTop &&
            item.$el.offsetTop < scrollTop + winTop
        ) {
            item._data.isShow = true;
        }
    });
}